package cz.spock.cms.entity;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Id;

import com.googlecode.objectify.Key;
import com.googlecode.objectify.annotation.Unindexed;

@Entity
public class Project {
    
    @Id
    private Long id;
    
    private Long ownerId;
    
    private String url;
    
    @Unindexed
    private Key<Node> topNode;
    @Unindexed
    private List<Key<Node>> pages;
    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(Long ownerId) {
        this.ownerId = ownerId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Key<Node> getTopNode() {
        return topNode;
    }

    public void setTopNode(Key<Node> topNode) {
        this.topNode = topNode;
    }

    public List<Key<Node>> getPages() {
        return pages;
    }

    public void setPages(List<Key<Node>> pages) {
        this.pages = pages;
    }

}
